package com.ruoyi.pingan.fymodule.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 平安分账店铺订单
 * </p>
 *
 * @author wangy
 * @since 2025-08-04
 */
@Data
@TableName("sxo_safety_shop_order")
@Schema(name = "SxoSafetyShopOrder对象", description = "平安分账店铺订单")
public class SxoSafetyShopOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "订单id")
    @TableField("order_id")
    private String orderId;

    @Schema(description = "订单号")
    @TableField("order_no")
    private String orderNo;

    @Schema(description = "店铺id")
    @TableField("shop_id")
    private String shopId;

    @Schema(description = "店铺名称")
    @TableField("shop_name")
    private String shopName;

    @Schema(description = "支付订单所属日期")
    @TableField("pay_order_date")
    private String payOrderDate;

    @Schema(description = "渠道订单号")
    @TableField("channel_order_no")
    private String channelOrderNo;

    @Schema(description = "订单支付日志ID")
    @TableField("pay_log_id")
    private String payLogId;

    @Schema(description = "充值api状态（-1调用充值接口失败;0未调用API；1调用充值接口成功；）")
    @TableField("liquidation_api_status")
    private Integer liquidationApiStatus;

    @Schema(description = "充值调用API接口时间")
    @TableField("liquidation_api_time")
    private String liquidationApiTime;

    @Schema(description = "充值状态（-1充值失败；0未充值；1充值成功；）")
    @TableField("liquidation_status")
    private Integer liquidationStatus;

    @Schema(description = "充值成功时间")
    @TableField("liquidation_suc_time")
    private String liquidationSucTime;

    @Schema(description = "充值修改时间")
    @TableField("liquidation_upd_time")
    private String liquidationUpdTime;

    @Schema(description = "分账api状态（-1调用分账接口失败；0未调用API；1调用分账接口成功）")
    @TableField("sep_api_status")
    private Integer sepApiStatus;

    @Schema(description = "分账调用API接口时间")
    @TableField("sep_api_time")
    private String sepApiTime;

    @Schema(description = "分账状态（-1分账失败；0未分账；1分账成功；）")
    @TableField("sep_status")
    private Integer sepStatus;

    @Schema(description = "分账时间")
    @TableField("sep_time")
    private String sepTime;

    @Schema(description = "分账修改时间")
    @TableField("sep_upd_time")
    private String sepUpdTime;

    @Schema(description = "充值撤退api状态（-1调用充值撤退接口失败；0未调用API；1调用充值撤退接口成功）")
    @TableField("liquidation_rev_api_status")
    private Integer liquidationRevApiStatus;

    @Schema(description = "充值调用API接口撤退时间")
    @TableField("liquidation_rev_api_time")
    private String liquidationRevApiTime;

    @Schema(description = "充值撤退状态（-1充值撤退失败；0未撤退充值；1撤退充值成功；）")
    @TableField("liquidation_rev_status")
    private Integer liquidationRevStatus;

    @Schema(description = "充值撤退时间")
    @TableField("liquidation_rev_time")
    private String liquidationRevTime;

    @Schema(description = "充值撤退修改时间")
    @TableField("liquidation_rev_upd_time")
    private String liquidationRevUpdTime;

    @Schema(description = "退款日志ID")
    @TableField("pay_rev_log_id")
    private String payRevLogId;

    @Schema(description = "错误信息")
    @TableField("error_msg")
    private String errorMsg;


    @Schema(description = "状态（0正常, 1删除）")
    @TableField("status")
    private Integer status;

    @Schema(description = "添加时间")
    @TableField("add_time")
    private String addTime;

    @Schema(description = "更新时间")
    @TableField("upd_time")
    private String updTime;
}
